export function clearHistory(router, path = "/login") {
  let backlen = window.history.length;
  window.history.go(-backlen);
  router.replace({ path });
}
